package com.cq.hd.member.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MerchantAmtBillPageVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "流水编号")
    private String billNo;

    @ApiModelProperty(value = "收支类型(1-收入，2-支出)")
    private Integer billType;

    @ApiModelProperty(value = "交易类型(1-订单本金，2-订单补贴，3-本金提现，4-补贴提现，5-本金提现失败退回，6-补贴提现失败退回，7-订单收入)")
    private Integer tradeType;

    @ApiModelProperty(value = "关联交易单号（子订单号/提现单号）")
    private String relationTradeNo;

    @ApiModelProperty(value = "变动金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal tradeAmt;

    @ApiModelProperty(value = "交易时间（收款时间/补贴时间/提现时间）")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "备注")
    private String remark;

}
